[//I CAN HAS LASSO?

	'<form action="' + $REW_Action + 'Do/" name="'$these $REW_Action '" method="post" >';
	var: 'tabindex' = 0;
	var: 'calendarIndex' = 0;
	var: 'calendarDate' = ((Date)->(Format:'%m/%d/%Y %T'));
	var: 'calendarObjects' = (Map); // see "date" field below...
	iterate((var:$rewAction + '_Fields'), var('a_Map'));
			var: 'a_Column' = '' ;
			$tabindex += 1;
			var: 'fieldType' = $a_Map->Find: 'type';
			//var: 'a_Column' = (Encrypt_Blowfish2: ($a_Map->Find: 'field'), -Seed='fwpro') ;
			var: 'a_Column' = ($a_Map->Find: 'field') ;
			//var: 'column_decrypted' = (decrypt_Blowfish2: -Seed='fwpro', $a_Column);
			var: 'a_column_decrypted' = ($a_Map->Find: 'field') ;
			var: 'field_label' = ($a_Map->Find: 'field') ;
			$field_label->replace('_and_', '&nbsp&amp;&nbsp;');
			$field_label->replace('~', '&rsquo;');
			$field_label->replace('__', ' / ');
			$field_label->replace('_', ' ');
			var: 'a_onclick' = $a_Map->Find: 'onclick';
			var: 'a_onchange' = $a_Map->Find: 'onchange';
			var: 'a_onfocus' = $a_Map->Find: 'onfocus';
			var: 'a_onblur' = $a_Map->Find: 'onblur';
			var: 'a_default' = $a_Map->Find: 'default';
			var: 'a_onsubmit' = $a_Map->Find: 'onsubmit';
			var: 'table' = $a_Map->Find: 'table';
			var: 'options' = $a_Map->(Find:'options');
			var: 'a_description' = $a_Map->(Find:'description');
			var: 'fieldLabel' = $a_Map->Find: 'label';
			var: 'requiredOrNot' = $a_Map->Find: 'required';
			(((var: ($rewAction + '_Okay'))->(Find:$a_column_decrypted))->Size) ? var($a_column_decrypted = (((var: ($rewAction + '_Okay'))->(Find:$a_column_decrypted))));
			(var($a_column_decrypted))->size ? ((var($a_column_decrypted))->beginswith('set')) ? var($a_column_decrypted = (var($a_column_decrypted)->removeleading('set_')));
			//(var($a_column_decrypted)->beginswith('set_')) ? var($a_column_decrypted = (var($a_column_decrypted)->removeleading('set_')));
			$a_Column == 'UID' && response_path >> 'Edit' ? $fieldType = 'Hidden';
			$a_Column == 'UID' && response_path >> 'Create' ? (loop_continue);
			select: $fieldType;
					case: 'varChar';
							if($a_column->endswith('UID'));
									Include('/_Makerator/_Library/form_varcharUID.lasso');
							else;
									Include('/_Makerator/_Library/form_varchar.lasso');
							/if;
					case: 'text';
							if($a_column->endswith('UID'));
									Include('/_Makerator/_Library/form_textUID.lasso');
							else;
									Include('/_Makerator/_Library/form_text.lasso');
							/if;
					case: 'text';
							Include('/_Makerator/_Library/form_text.lasso');
					case: 'set';
							var: 'a_table' = var($rewAction + '_Table');
							Include('/_Makerator/_Library/form_set.lasso');
					case: 'enum';
							var: 'a_table' = var($rewAction + '_Table');
							//Include('/_Makerator/_Library/form_enum.lasso');
					case: 'datetime';
							var: 'a_ShowCalendar' = false;
							var: 'a_ShowToday' = true;
							$calendarIndex += 1;
							$calendarObjects->(Insert:$a_column=$calendarIndex);
							Include('/_Makerator/_Library/form_date.lasso');
					case: 'date';
							var: 'a_ShowCalendar' = false;
							var: 'a_ShowToday' = true;
							$calendarIndex += 1;
							$calendarObjects->(Insert:$a_column=$calendarIndex);
							Include('/_Makerator/_Library/form_date.lasso');
					/*
					case: 'review';
							Include: $my_REW_FormReviewOnly;
					case: 'review_ssn';
							Include: $my_REW_FormReviewSsn;
					case: 'groupStart';
							Include: $my_REW_FormGroupStart;
					case: 'groupEnd';
							Include: $my_REW_FormGroupEnd;
					case: 'comment';
							Include: $my_REW_FormComment;
					case: 'freestyle';
							var: 'a_freestyleContent' = $a_Map->Find: 'content';
							Include: $my_REW_FormFreestyle;
					case: 'text';
							Include: $my_REW_FormTextField;
					case: 'hidden';
							Include: $my_REW_FormHiddenField;
					case: 'phone';
							Include: $my_REW_FormPhoneField;
					case: 'ssn';
							Include: $my_REW_FormSsnField;
					case: 'textarea';
							var: 'some_rows' = $a_Map->Find: 'rows';
							var: 'some_cols' = $a_Map->Find: 'cols';
							Include: $my_REW_FormTextAreaField;
					case: 'password';
							Include: $my_REW_FormPasswordField;
					case: 'select';
							Include: $my_REW_FormselectField;
					case: 'enum';
							var: 'a_table' = $a_Map->Find: 'table';
							Include: $my_REW_FormEnumField;
					case: 'set';
							var: 'a_Column' = (encrypt_blowfish: -Seed=$bfseed, ('' + ($a_Map->Find: 'name'))) ;
							var: 'a_table' = $a_Map->Find: 'table';
							Include: $my_REW_FormSetField;
					case: 'checkbox';
							var: 'a_Column' = (encrypt_blowfish: -Seed=$bfseed, ('ch3ckb0x_' + ($a_Map->Find: 'name'))) ;
							Include: $my_REW_FormCheckboxField;
					case: 'radio';
							Include: $my_REW_FormRadioField;
					*/
			/select;
			
	/Iterate;
]
	<fieldset>
		<input class="submit button" type="submit" value="Submit" id="formsubmittor">
		<input 
			type="button" 
			class="button" 
			name="-nothing" 
			value="Reset form (clears errors, too)" 
			onclick="javascript:window.location=('[$rewAction_ResetPage_pathTo]?exit=[response_path]')"
	</fieldset>



[
	'</form>';
/*
	If:(($calendarObjects->Size) > 0);
			'<script language="JavaScript"  type="text/javascript" >\r';
				'// create calendar object(s) just after form tag closed\r';
				Iterate: $calendarObjects, var: 'a_calendarObject';
						'var cal' + $a_calendarObject->Second + ' = new calendar2(document.forms[\'REW\'].elements[\'' + $a_calendarObject->First + '\']);\r';
						'cal' + $a_calendarObject->Second + '.year_scroll=true;\r';
						'cal' + $a_calendarObject->Second + '.time_comp=true;\r';
				/Iterate;
			'</script>';
	/If;
	*/

]
